/**
 * Created by levy on 16/6/30.
 */

/**
 * num: 需要显示的数字
 */
var TipNum = React.createClass({
    render: function () {
        var num = this.props.num || 0,
            cls = num > 9 ? num > 99 ? 'dot' : 'two-num' : '' ;
        return num ?
            <span className={"tip-num " + cls}>{num > 99 ? '...' : num}</span> : null;

    }
});

export default TipNum;
